package com.kfm.wiki;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@MapperScan("com.kfm.wiki.mapper")
@SpringBootApplication
@EnableScheduling // 定时任务
@EnableAsync // 启用异步
public class WikiApplication {

    public static void main(String[] args) {
        ApplicationContext ctx=SpringApplication.run(WikiApplication.class, args);
        System.out.println("Spring applicationContext className:"+ctx.getClass().getName());


//        SpringApplication.run(WikiApplication.class, args);
    }

}
